package com.xxx.mch.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import lombok.Data;

/**
 * @author FengHaixin
 * @description 一句话描述该文件的用途
 * @date 2020-09-14
 */
@Data
@ApiModel ("用户积分明细")
public class UserResultScoreDto
{

    /**
     * 阅读量
     */
    @ApiModelProperty ("阅读量")
    private Integer readCount = 0;

    /**
     * 获奖量
     */
    @ApiModelProperty ("获奖量")
    private Integer awardCount = 0;

    /**
     * 表扬量
     */
    @ApiModelProperty ("表扬量")
    private Integer praiseCount = 0;

    /**
     * 已投中石油量
     */
    @ApiModelProperty ("已投中石油量")
    private Integer petroChinaCount = 0;

    /**
     * 已投社会媒体量
     */
    @ApiModelProperty ("已投社会媒体量")
    private Integer socialMediaCount = 0;

    @ApiModelProperty ("定量 + 定性 - 阈值后的结果积分")
    private BigDecimal score = new BigDecimal("0");

    /**
     * 合计
     */
    @ApiModelProperty ("合计")
    private BigDecimal totalCount = new BigDecimal("0");

    /**
     * 本月积分
     */
    @ApiModelProperty ("本月积分")
    private BigDecimal totalScore = new BigDecimal("0");


    public BigDecimal getTotalScore()
    {
        return this.getTotalCount();
    }


    public BigDecimal getTotalCount()
    {
        return new BigDecimal(this.readCount + this.awardCount + this.praiseCount + this.petroChinaCount + this.socialMediaCount).add(
                this.getScore());
    }
}
